package aimozg.joglfw;

import javax.media.opengl.GL;

public class GLPoint implements GLRenderable{

    public double x;
    public double y;
    public double z;

    public GLPoint(double x, double y, double z) {
        this.x = x;
        this.y = y;
        this.z = z;
    }

    public GLPoint(double x, double y) {
        this.x = x;
        this.y = y;
        this.z = 0;
    }

    public void render(GL gl) {
        gl.glVertex3d(x,y,z);
    }

	public GLPoint shift(double dx, double dy, double dz) {
		return new GLPoint(x+dx,y+dy,z+dz);
	}
}
